package com.qf.service.impl;

import com.qf.Resp.BaseResp;
import com.qf.dao.OperatorsDao;
import com.qf.loanapplication.Loanapplication;
import com.qf.operators.Operators;
import com.qf.service.OperatorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperatorsServiceImpl implements OperatorsService {

    @Autowired
    OperatorsDao operatorsDao;

    @Override
    public List<Operators> selectAllOperators() {
        return operatorsDao.selectAllByProposer();
    }
    /*根据id查询两表*/
    @Override
    public Operators selectOneProposerById(Integer id) {
        return operatorsDao.selectOneProposerById(id);
    }
/*两表查询全部*/

    @Override
    public void repayment(Double allMoney){
        operatorsDao.repayment(allMoney);
    }
}
